package com.hunan.api.catv.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hunan.api.catv.entity.po.Comment;
import com.hunan.api.catv.entity.vo.CommentVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author jiang zhuan
 * @version 1.0
 * @description 评论
 * @date 2020/9/22 0022
 * @package com.hunan.api.catv.dao
 * @company 湖南有线
 */
@Mapper
public interface CommentDao extends BaseMapper<Comment>, BaseDao<Comment, CommentVo, Long> {

    List<CommentVo> getCommentList(@Param("memberPhone") String memberPhone, @Param("answerId") Integer answerId,
                                   @Param("memberName") String memberName, @Param("state") Integer state, @Param("startTime") String startTime,
                                   @Param("endTime") String endTime, @Param("reviewStartTime") String reviewStartTime, @Param("reviewEndTime") String reviewEndTime);

    List<Long> selectlistIdsExcludeFail(Comment comment);

    Integer countExcludeFail(Comment comment);
}
